package com.stu.student_back_end.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;

/**
 * 学生实体类
 */

@Data
@TableName("tbl_student")
public class TblStudent {

    //id
    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    //密码
    private String password;

    //学号
    @TableField("snoId")
    private Long snoId;

    //姓名
    private String name;

    //年龄
    private int age;

    //楼栋
    @TableField("build")
    private String build;

    //性别
    private String sex;

    //状态
    private int state; // 0 入住   1 迁出

    //入住时间
    @TableField("intoTime")
    private Date intoTime;
}
